package com.travel.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "Member", description = "用户表对应的实体类")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", example = "1")
    private Integer id;

    @ApiModelProperty(value = "手机号", example = "13800138000")
    private String phone;

    @ApiModelProperty(value = "名称", example = "张三")
    private String name;

    @ApiModelProperty(value = "头像", example = "https://example.com/avatar.jpg")
    private String avatar;

    @ApiModelProperty(value = "OpenID", example = "abc123def456")
    private String openId;

    @ApiModelProperty(value = "创建时间", example = "2025-06-09 10:00:00")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间", example = "2025-06-09 11:00:00")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人", example = "1")
    private Integer createBy;

    @ApiModelProperty(value = "更新人", example = "1")
    private Integer updateBy;

    @ApiModelProperty(value = "角色", example = "角色 1:业务员  0:普通用户")
    private Integer role;
}